package com.seari.bean.ats;

import java.io.Serializable;
import java.util.Arrays;

/**
 * @author TOUC 牵引分段信息
 *
 */
public class CiosAtsScadaInfo implements Serializable {

	private static final long serialVersionUID = 1L;

	// Section ID表示SCADA节点  两个字节
	private byte[] ScadaId;
	// 表示供电状态， 0表示未知，1表示正常供电，2表示没有供电。
	private byte status;
	public CiosAtsScadaInfo(byte[] scadaId, byte status) {
		super();
		ScadaId = scadaId;
		this.status = status;
	}
	public CiosAtsScadaInfo() {
		super();
		// TODO Auto-generated constructor stub
	}
	@Override
	public String toString() {
		return "CiosAtsScadaInfo [ScadaId=" + Arrays.toString(ScadaId)
				+ ", status=" + status + "]";
	}
	public byte[] getScadaId() {
		return ScadaId;
	}
	public void setScadaId(byte[] scadaId) {
		ScadaId = scadaId;
	}
	public byte getStatus() {
		return status;
	}
	public void setStatus(byte status) {
		this.status = status;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + Arrays.hashCode(ScadaId);
		result = prime * result + status;
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		CiosAtsScadaInfo other = (CiosAtsScadaInfo) obj;
		if (!Arrays.equals(ScadaId, other.ScadaId))
			return false;
		if (status != other.status)
			return false;
		return true;
	}
	
}
